package com.huiyun.project.im.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * IM会话
 * </p>
 *
 * @author bogon
 * @since 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("im_session")
@ApiModel(value="Session对象", description="IM会话")
public class ImSession implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    private String userId;

    @ApiModelProperty(value = "1.IM 2.通知类型IM用户")
    private Integer oUserType;

    private String oUserId;

    @ApiModelProperty(value = "所属服务商")
    private String imSpId;

    private LocalDateTime createTime;

    private LocalDateTime modifyTime;

    private Integer deviceType;

    private Integer devicePlatform;

    private String deviceId;

    @ApiModelProperty(value = "1.正常 2.删除")
    private Integer status;


}
